import request from "../utils/request";

// 获取student页面数据的api
export function getStudent(params){
  return request({
    url:"/getStudentData",//发送请求  接口名字是mock里面的接口名
    method:"get",
    params
  })
}

// 删除单个
export function deleteId(params){
  return request({
    url:'./deleteIdData',
    method:'post',
    data:params
  })
}

// 批量删除
export function batchDelete(params){
  return request({
    url:'/batchDelete',
    method:'post',
    data:params
  })
}

// 编辑
export function editFun(params){
  return request({
    url:'/editData',
    method:'post',
    data:params
  })
}